﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Grizzy_X
{
    public class CTextLegend : CLegend
    {
        public Font font;//font里记录了字体样式、大小、是否倾斜、是否加粗、是否下划线
        public Color string_Color;
        public bool hasTextbox;
        public enum TextboxBorderStyle { solidline, dashline };
        public TextboxBorderStyle textbox_Border_Style;
        public enum TextboxFillStyle { solid, transparent };
        public TextboxFillStyle textbox_Fill_Style;
        public Color textbox_BorderColor;
        public Color textbox_FillColor;

        public void initialize()
        {
            this.string_Color = Color.Black;
            this.font = new Font("SimHei", 12);//缺省字体为宋体
            this.Legend_Type = LegendType.CTextLegend;
            this.ByScale = true;
            this.Visible = true;
        }
    }
}
